package cn.sciento.farm.devicemanager.api.jsonrpc;

import cn.sciento.farm.devicemanager.dao.entity.DevScene;
import cn.sciento.farm.devicemanager.dao.model.ResponseMessage;
import cn.sciento.farm.devicemanager.dao.model.SceneForm;
import com.googlecode.jsonrpc4j.JsonRpcMethod;
import com.googlecode.jsonrpc4j.JsonRpcService;

/**
 * 场景
 */
@JsonRpcService("rpc/hardware.scene")
public interface SceneJsonApi{

    ResponseMessage create(SceneForm scene);

    ResponseMessage update(SceneForm scene);

    ResponseMessage delete(Long id);

    ResponseMessage get(Long id);

    ResponseMessage list(Integer areaId,Integer landId);

    @JsonRpcMethod("list_device")
    ResponseMessage listSceneDevice(Long id);

    @JsonRpcMethod("list_device_all")
    ResponseMessage listDeviceAll(Long id);

    ResponseMessage control(Long sceneId,Long controllerId,Integer sw);

    @JsonRpcMethod("list_device_id")
    ResponseMessage listDeviceId(Long id);

    @JsonRpcMethod("update_device")
    ResponseMessage updateSceneDevice(Long id,String list);
}
